<?php

namespace App\Models;

use App\Models\base\WarehouseModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model as BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class DispatchTaskUnloadModel extends BaseModel
{
    use HasFactory;

    protected $table = 't_dispatch_task_unload';

    protected $primaryKey = 'id';

    public $timestamps = false;

    protected $guarded = [];

    protected $hidden = [];

    //仓库货站
    public function warehouse(): BelongsTo {
        return $this->belongsTo(WarehouseModel::class, 'warehouse_id');
    }

}
